package com.ruoyi.system.api.domain;

import java.io.Serializable;

/**
 * 
 * @TableName trace_lng_lat
 */
public class TraceLngLat implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Double lng;

    /**
     * 
     */
    private Double lat;

    /**
     * 作物编号
     */
    private String cropsId;


    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public Double getLng() {
        return lng;
    }

    /**
     * 
     */
    public void setLng(Double lng) {
        this.lng = lng;
    }

    /**
     * 
     */
    public Double getLat() {
        return lat;
    }

    /**
     * 
     */
    public void setLat(Double lat) {
        this.lat = lat;
    }

    /**
     * 作物编号
     */
    public String getCropsId() {
        return cropsId;
    }

    /**
     * 作物编号
     */
    public void setCropsId(String cropsId) {
        this.cropsId = cropsId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TraceLngLat other = (TraceLngLat) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLng() == null ? other.getLng() == null : this.getLng().equals(other.getLng()))
            && (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
            && (this.getCropsId() == null ? other.getCropsId() == null : this.getCropsId().equals(other.getCropsId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLng() == null) ? 0 : getLng().hashCode());
        result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
        result = prime * result + ((getCropsId() == null) ? 0 : getCropsId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", lng=").append(lng);
        sb.append(", lat=").append(lat);
        sb.append(", cropsId=").append(cropsId);
        sb.append("]");
        return sb.toString();
    }
}